package cn.gov.nblr.top.sso.webservice;

public class SsoServicePortTypeProxy implements cn.gov.nblr.top.sso.webservice.SsoServicePortType {
  private String _endpoint = null;
  private cn.gov.nblr.top.sso.webservice.SsoServicePortType ssoServicePortType = null;
  
  public SsoServicePortTypeProxy() {
    _initSsoServicePortTypeProxy();
  }
  
  public SsoServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initSsoServicePortTypeProxy();
  }
  
  private void _initSsoServicePortTypeProxy() {
    try {
      ssoServicePortType = (new cn.gov.nblr.top.sso.webservice.SsoServiceLocator()).getSsoServiceHttpPort();
      if (ssoServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)ssoServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)ssoServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (ssoServicePortType != null)
      ((javax.xml.rpc.Stub)ssoServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public cn.gov.nblr.top.sso.webservice.SsoServicePortType getSsoServicePortType() {
    if (ssoServicePortType == null)
      _initSsoServicePortTypeProxy();
    return ssoServicePortType;
  }
  
  public cn.gov.nblr.top.sso.beans.UserCaInfo sysLoginCa(java.lang.String in0, java.lang.String in1, java.lang.String in2, java.lang.String in3, java.lang.String in4) throws java.rmi.RemoteException{
    if (ssoServicePortType == null)
      _initSsoServicePortTypeProxy();
    return ssoServicePortType.sysLoginCa(in0, in1, in2, in3, in4);
  }
  
  public cn.gov.nblr.top.sso.beans.SsoUserInfo appLogin(java.lang.String in0, java.lang.String in1, java.lang.String in2) throws java.rmi.RemoteException{
    if (ssoServicePortType == null)
      _initSsoServicePortTypeProxy();
    return ssoServicePortType.appLogin(in0, in1, in2);
  }
  
  public cn.gov.nblr.top.sso.beans.SsoUserInfo[] usersOnline(java.lang.String in0) throws java.rmi.RemoteException{
    if (ssoServicePortType == null)
      _initSsoServicePortTypeProxy();
    return ssoServicePortType.usersOnline(in0);
  }
  
  public java.lang.String sysLogout(java.lang.String in0, java.lang.String in1, java.lang.String in2) throws java.rmi.RemoteException{
    if (ssoServicePortType == null)
      _initSsoServicePortTypeProxy();
    return ssoServicePortType.sysLogout(in0, in1, in2);
  }
  
  public cn.gov.nblr.top.sso.beans.SsoUserInfo sysLogin(java.lang.String in0, java.lang.String in1, java.lang.String in2, java.lang.String in3) throws java.rmi.RemoteException, cn.gov.nblr.top.sso.beans.SsoNotFoundUserException, cn.gov.nblr.top.sso.beans.SsoPasswordErrorException{
    if (ssoServicePortType == null)
      _initSsoServicePortTypeProxy();
    return ssoServicePortType.sysLogin(in0, in1, in2, in3);
  }
  
  public cn.gov.nblr.top.sso.beans.UserCaInfo checkCaByUsername(java.lang.String in0) throws java.rmi.RemoteException{
    if (ssoServicePortType == null)
      _initSsoServicePortTypeProxy();
    return ssoServicePortType.checkCaByUsername(in0);
  }
  
  
}